package model;

import java.sql.Timestamp;

// 这个类对应 数据库中的 blog 表中的一条记录
public class Blog {

    private int blogId; // 博客id
    private String title; // 博客标题
    private String content; // 博客正文
    private Timestamp postTime; // 博客发布时间
    private int userId; // 博客所属的 用户id

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Timestamp getPostTime() {
        return postTime;
    }

    public void setPostTime(Timestamp postTime) {
        this.postTime = postTime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }
}
